<?php
+use Wikimedia\Rdbms\Database;
use Wikimedia\Rdbms\DatabaseMssql;
class DatabaseMssqlTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
+ use PHPUnit4And6Compat;
/**
* @return PHPUnit_Framework_MockObject_MockObject|DatabaseMssql
$mockDb->buildSubstring( 'foo', $start, $length );
}
+ /**
+ * @covers \Wikimedia\Rdbms\DatabaseMssql::getAttributes
+ */
+ public function testAttributes() {
+ $this->assertTrue( DatabaseMssql::getAttributes()[Database::ATTR_SCHEMAS_AS_TABLE_GROUPS] );
+ }
}